#define VERSION_NUMBER 1

struct player {
	string name<80>;
	int score;
};

struct room {
	string name<80>;
	int room_id;
	player p;
};

/* tacada */
struct shot {
	float force;
	float angle;
	int room_id;
	int shot_num; /* utilizado em WAITSHOT */
};


program BOLA_PROG {
	version BOLA_VERSION {
		int ADDPLAYER(player) = 1;
		int RMPLAYER(player) = 2;
		int CREATEROOM(room) = 3;
		int RMROOM(int) = 4;
		int JOINROOM(room) = 5;
		int MAKESHOT(shot) = 6;
		int WAITSHOT(shot) = 7;
		float WAITSHOTFORCE(int) = 8;
		float WAITSHOTANGLE(int) = 9;
	} = VERSION_NUMBER;
} = 5555555;

